package com.shiminghui.StringBuilder;

public class StringBuilderDemo {
    public static void main(String[] args) {

        StringBuilder stringBuilder = new StringBuilder();

        stringBuilder.append("abcd");
        stringBuilder.append(21);
        stringBuilder.append(1223.231);

        System.out.println(stringBuilder);
        System.out.println(stringBuilder.length());
        System.out.println(stringBuilder.toString());
        stringBuilder.reverse();//反转
        System.out.println(stringBuilder);


    }
}
